<?php
session_start();
?>
<?php
require "lib/db.php";
require "lib/product-function.php";

if(isset($_GET['productid'])){
	$productID = $_GET['productid'];
	settype($productID,"int");
	deleteProduct($productID);
	header("location:list-product.php");
}
?>